a=5
b=3.14
c='hello'
d=[1,2,3]

# type判断
print(type(a) is int)
print(type(b) is float)
print(type(c) is str)
print(type(d) is list)
'''
True
True
True
True
'''

# isinstance判断
print(isinstance(a,int))
print(isinstance(b,float))
print(isinstance(c,str))
print(isinstance(d,list))
'''
True
True
True
True
'''